package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import com.ym.medical.domain.entity.VerifyExcpBillEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;

/**
 * 对账异常账单对象 verify_excp_bill
 *
 * @author ym
 * @date 2020-09-25
 */
@ApiModel("对账异常账单-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VerifyExcpBillUpdateParam extends BeanCovert<VerifyExcpBillEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("用户姓名")
    @Size(max = 64, message = "用户姓名长度超过{max}", groups = {Add.class, Update.class})
    private String userName;

    @ApiModelProperty("用户手机号")
    @Size(max = 16, message = "用户手机号长度超过{max}", groups = {Add.class, Update.class})
    private String userPhone;

    @ApiModelProperty("产品名称")
    @Size(max = 64, message = "产品名称长度超过{max}", groups = {Add.class, Update.class})
    private String prodName;

    @ApiModelProperty("交易明细内容")
    @Size(max = 400, message = "交易明细内容长度超过{max}", groups = {Add.class, Update.class})
    private String tdBody;

    @ApiModelProperty("商户订单号")
    @Size(max = 64, message = "商户订单号长度超过{max}", groups = {Add.class, Update.class})
    private String outTradeNo;

    @ApiModelProperty("支付流水号")
    @Size(max = 64, message = "支付流水号长度超过{max}", groups = {Add.class, Update.class})
    private String tradeNo;

    @ApiModelProperty("业务类型(01:支付;02:退费;)")
    @Size(max = 2, message = "业务类型长度超过{max}", groups = {Add.class, Update.class})
    private String busType;

    @ApiModelProperty("付款账户")
    @Size(max = 32, message = "付款账户长度超过{max}", groups = {Add.class, Update.class})
    private String payAcc;

    @ApiModelProperty("交易金额")
    private Double tradeAmt;

    @ApiModelProperty("交易时间")
    private Date tradeTime;

    @ApiModelProperty("支付方式")
    @Size(max = 2, message = "支付方式长度超过{max}", groups = {Add.class, Update.class})
    private String payType;

    @ApiModelProperty("订单异常类型(01:平台存在，支付方不存在;02:支付方存在，平台不存在;03:支付方属实不存在，系统异常)")
    @Size(max = 2, message = "订单异常类型长度超过{max}", groups = {Add.class, Update.class})
    private String execType;

    @ApiModelProperty("处理状态(01:未处理;02:已处理)")
    @Size(max = 2, message = "处理状态长度超过{max}", groups = {Add.class, Update.class})
    private String handleStatus;

    @ApiModelProperty("对账状态(01:未对账;02:已对账)")
    @Size(max = 2, message = "对账状态长度超过{max}", groups = {Add.class, Update.class})
    private String billStatus;

    @ApiModelProperty("创建人")
    private Long creator;

    @ApiModelProperty("创建时间")
    @NotNull(message = "创建时间不能为空", groups = Add.class)
    private Date createTime;

    @ApiModelProperty("修改人")
    private Long modifier;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
